import request from "@/utils/request"
import { ApiRes } from "@/types/data";
import { GoodsInfo } from "@/types/goods";

// 获取商品详情
export function getGoodsInfo (params: { id: string }) {
  return request<ApiRes<GoodsInfo>>({
    url: '/goods',
    method: "get",
    params
  })
}
